Optimal. Leaf size=73 \[ \frac{a x \sqrt{a^2+\frac{2 a b}{x}+\frac{b^2}{x^2}}}{a+\frac{b}{x}}-\frac{b \log \left (\frac{1}{x}\right ) \sqrt{a^2+\frac{2 a b}{x}+\frac{b^2}{x^2}}}{a+\frac{b}{x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0357841, antiderivative size = 73, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {1342, 646, 43} \[ \frac{a x \sqrt{a^2+\frac{2 a b}{x}+\frac{b^2}{x^2}}}{a+\frac{b}{x}}-\frac{b \log \left (\frac{1}{x}\right ) \sqrt{a^2+\frac{2 a b}{x}+\frac{b^2}{x^2}}}{a+\frac{b}{x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1342
Rule 646
Rule 43
Rubi steps
\begin{align*} \int \sqrt{a^2+\frac{b^2}{x^2}+\frac{2 a b}{x}} \, dx &=-\operatorname{Subst}\left (\int \frac{\sqrt{a^2+2 a b x+b^2 x^2}}{x^2} \, dx,x,\frac{1}{x}\right )\\ &=-\frac{\sqrt{a^2+\frac{b^2}{x^2}+\frac{2 a b}{x}} \operatorname{Subst}\left (\int \frac{a b+b^2 x}{x^2} \, dx,x,\frac{1}{x}\right )}{a b+\frac{b^2}{x}}\\ &=-\frac{\sqrt{a^2+\frac{b^2}{x^2}+\frac{2 a b}{x}} \operatorname{Subst}\left (\int \left (\frac{a b}{x^2}+\frac{b^2}{x}\right ) \, dx,x,\frac{1}{x}\right )}{a b+\frac{b^2}{x}}\\ &=\frac{a \sqrt{a^2+\frac{b^2}{x^2}+\frac{2 a b}{x}} x}{a+\frac{b}{x}}+\frac{b \sqrt{a^2+\frac{b^2}{x^2}+\frac{2 a b}{x}} \log (x)}{a+\frac{b}{x}}\\ \end{align*}
Mathematica [A] time = 0.0196016, size = 32, normalized size = 0.44 \[ \frac{x \sqrt{\frac{(a x+b)^2}{x^2}} (a x+b \log (x))}{a x+b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 40, normalized size = 0.6 \begin{align*}{\frac{x \left ( ax+b\ln \left ( x \right ) \right ) }{ax+b}\sqrt{{\frac{{a}^{2}{x}^{2}+2\,abx+{b}^{2}}{{x}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.999886, size = 11, normalized size = 0.15 \begin{align*} a x + b \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02493, size = 22, normalized size = 0.3 \begin{align*} a x + b \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a^{2} + \frac{2 a b}{x} + \frac{b^{2}}{x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1146, size = 39, normalized size = 0.53 \begin{align*} a x \mathrm{sgn}\left (a x^{2} + b x\right ) + b \log \left ({\left | x \right |}\right ) \mathrm{sgn}\left (a x^{2} + b x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]